//var express = require('express');

import express from 'express';
import UserC from '../controller/user';

var router = express.Router();

/* GET home page. */
router.get('/', function(req, res, next) {
	res.render('index', {
		title: '这个是app应用下的user模块'
	});
});

router.get('/createuser', UserC.createuser);//根据访问路径调用不同的方法
router.get('/deleteuser', UserC.deleteuser);
router.get('/updateuser', UserC.updateuser);
router.get('/queryuser', UserC.queryuser);
router.get('/createtable', UserC.createtable);
// 	
export default router;
//module.exports = router;
